package bz.ziro.kanbe.controller.mng.comment;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;
import org.slim3.datastore.Datastore;

import com.google.appengine.api.datastore.Key;

import bz.ziro.kanbe.util.KeyFactory;

public class DeleteController extends Controller {

    @Override
    public Navigation run() {
    	String keyBuf = requestScope("commentKey");
    	Key key = KeyFactory.createCommentKey(Long.valueOf(keyBuf));
    	Datastore.delete(key);
        return null;
    }
}
